package com.qst.survey.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Date: 2021/3/18 20:13
 * @Description: 选项对应的实体类
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("question_answer")
public class QuestionAnswer {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;   //选项

    private Integer topicId; //对应的题目的题号

    private Integer numb;  //选项顺序

    private String title;  //选项  内容

    private Integer selected;  //选择的人数

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;  //创建时间

    @TableLogic
    private Integer deleted;  //逻辑删除
}
